package com.lifo.order.service;

import com.github.pagehelper.PageInfo;
import com.lifo.order.bean.HfOrder;

import java.util.List;

/**
 * Created by Administrator on 2018/6/30.
 */
public interface HfOrderService {

    /**
     * 通过用户ID查询淘宝订单
     * @param userId 用户ID
     * @return
     */
    PageInfo<HfOrder> searchUserOrder(Integer userId, Integer currentPage, Integer pageSize);


    HfOrder searchHfOrderByCartId( int cartId);


    /**
     * 保存用户订单
     * @param hfOrders
     * @return
     */
    Integer saveUserOrder(List<HfOrder> hfOrders);


    /**
     * 修改用户订单
     * @param hfOrder
     * @return
     */
    Boolean updateUserOrder(HfOrder hfOrder);
}
